<template>
  <div id="my">
    <!-- 个人信息栏 -->
    <div class="my-info" style="">
      <!-- 头像部分 -->
      <router-link to="/zone" class="user-head">
        <div class="head-pic">
          <img src="/header_img/touxiang.jpg" alt="" class="head-img" />
        </div>
      </router-link>
      <!-- 头像右侧 -->
      <div class="right-info">
        <div class="user-name">
          <router-link to="/zone" class="name">
            <span>冉冉冉冉冉木木</span>
          </router-link>

          <router-link to="/zone" class="zone-link">
            空间&nbsp;&nbsp;&gt;
          </router-link>
        </div>
        <div></div>
        <p class="uid">UID:666666  <span>关注  0</span></p>        
      </div>
    </div>
    <div class="line"></div>

    <!-- 个人中心 -->
    <div class="my-center" style="">
      <div class="header">
        <span class="header-title">个人中心</span>
      </div>
      <div class="content">
        <router-link to="/bookslist" class="item">
          <span class="icon">
            <img src="../assets/my-icon/shujia.png" alt="" />
          </span>
          <span class="title">我的书架</span>
        </router-link>
        <router-link to="/" class="item">
          <span class="icon">
            <img src="../assets/my-icon/xiaoxi.png" alt="" />
          </span>
          <span class="title">我的消息</span>
        </router-link>
        <!-- <router-link to="/" class="item">
          <span class="icon">
            <img src="../assets/my-icon/dingyue.png" alt="" />
          </span>
          <span class="title">我的订阅</span>
        </router-link> -->
        <router-link to="/" class="item">
          <span class="icon">
            <img src="../assets/my-icon/guanzhu.png" alt="" />
          </span>
          <span class="title">我的关注</span>
        </router-link>
        <!-- <router-link to="/" class="item">
          <span class="icon">
            <img src="../assets/my-icon/chengjiu.png" alt="" />
          </span>
          <span class="title">我的成就</span>
        </router-link> -->
      </div>
    </div>

    <!-- <div class="line"></div> -->

    <!-- 我的服务 -->
    <div class="my-service" style="">
      <div class="header">
        <span class="header-title">我的服务</span>
      </div>
      <div class="content">
        <router-link to="/setup" class="item">
          <span class="icon">
            <img src="../assets/my-icon/shezhi.png" alt="" />
          </span>
          <span class="title">个人设置</span>
        </router-link>
        <router-link to="/about" class="item">
          <span class="icon">
            <img src="../assets/my-icon/guanyu.png" alt="" />
          </span>
          <span class="title">关于我们</span>
        </router-link>
      </div>
    </div>
  </div>
</template>
<style lang="scss" scoped>
#my {
  width: 100vw;
  height: 100vh;
  div {
    box-sizing: border-box;
  }
}
.my-info {
  padding: 1.2rem 1rem 1rem;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  .user-head {
    width: 20vw;
    .head-pic {
      display: inline-block;
      width: 100%;
      img {
        border-radius: 50%;
        width: 100%;
      }
    }
  }
  .right-info {
    width: 80vw;
    margin: 0 0.9rem;
    .user-name {
      display: flex;
      justify-content: space-between;
      width: 100%;
      vertical-align: middle;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      .name span {
        font-size: 1.3rem;
      }
      .zone-link {
        display: block;
        font-size: 1rem;
        color: #8f8f9e;
      }
      .uid {
        margin-top: 0;
      }
      .statistics {
        position: relative;
        height: 1.5rem;
        display: flex;
        justify-content: space-between;
        .focus {
          position: relative;
          width: 30%;
          height: 1.5rem;
          text-align: center;
          .num {
            font-size: 0.53rem;
            color: #333;
          }
          .word {
            font-size: 0.45rem;
            color: #8f8f9e;
            margin-top: 0.075rem;
          }
        }
        .sign-icon {
          width: 70%;
        }
      }
    }

    .uid {
      margin: 0.15rem 0 0.3rem;
      font-size: 1rem;
      color: #8f8f9e;

      span{
        margin-left: 1.6rem;
      }
    }
  }
}
.line {
  width: 100vw;
  height: 0.1rem;
  background-color: rgba(206, 206, 206, 0.3);
}
.header .header-title {
  font-size: 1rem;
  color: #333;
  font-weight: 500;
  line-height: 1.23rem;
}
.my-center {
  padding: 0.9rem 0.9rem 0;
  text-align: left;
}
.my-service {
  margin: 0 0 0.9rem;
  padding: 0.9rem 0.9rem;
}
.content {
  display: flex;
  padding: 0.9rem 0.9rem 0;
  flex-wrap: wrap;
  .item {
    margin: 0 0.9rem 0 0;
    text-align: center;
    width: 5rem;
    height: 5rem;
    .icon {
      display: inline-block;
      max-width: 100%;
      vertical-align: middle;
      img{
        width: 24px;
        margin: 0 auto;
      }
    }
    .title {
      display: block;
      margin-top: 0.67rem;
      font-size: 0.8rem;
      color: #505050;
      white-space: nowrap;
    }
  }
}
</style>